Ext.define('PJ.view.trainingmanagement.Frame', {
    extend: 'Ext.container.Container',
    layout: 'border',
    // 必须增加这段，强制提前加载类，这样才可以使用简写
    requires: ['PJ.view.trainingmanagement.AuditUserListTree', 'PJ.view.trainingmanagement.AuditUserList'],
    items: [{
        region: 'center',
        xtype: 'trainingmanagementAuditUserList',
    }, {
        region: 'west',
        width: 225,
        xtype: "AuditUserListTree",
        collapsible: true
    }],
    listeners: {
    	show: function(){
            var loadMask = new Ext.LoadMask(this, {
                msg: orchid_lang.promptWindowInfo.loadingText
            });
            this.down("trainingmanagementAuditUserList").loadMask = loadMask;
            var store = this.down("trainingmanagementAuditUserList").getStore();
            var depid = $(document.getElementById("selectScope")).find("option:selected")[0].value;
			var newParams = {
					//searchUserId:this.searchUserId,
					searchDepId:$(document.getElementById("selectScope")).find("option:selected")[0].value
            };
            // 4.0强制更改store参数写法
            var params = store.proxy.extraParams;
            Ext.apply(params, newParams);
            // grid加载生效
            store.isLoad = true;
            store.load();
        }
    }
});